package com.htc.dlc;
import com.htc.dlc.fragment.FragmentTabAbout;
import com.htc.menu.MenuController;
import com.htc.utils.CommonActions;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.htc.menu.MenuController.MenuSelectedListener;

public class AboutActivity extends FragmentActivity implements MenuSelectedListener {
	MenuController menuController;
	View menuView;
	View menuViewSecondary;
	LinearLayout blurimageView;
	CommonActions ca;
	TextView tv_actionbar_title;
	private Fragment mContent;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		if (savedInstanceState != null) {
			mContent = getSupportFragmentManager().getFragment(
					savedInstanceState, "mContent");
		} else {
			mContent = new FragmentTabAbout();

		}
		setContentView(R.layout.activity_about);
		this.ca = new CommonActions(this);
		initViews();
		this.menuController = new MenuController(this.menuView,
				this.menuViewSecondary, this.blurimageView, this,
				getBaseContext(), AboutActivity.this);
		
		getSupportFragmentManager().beginTransaction()
		.add(R.id.fl_about, mContent).commit();
	}

	private void initViews() {
		tv_actionbar_title = (TextView)findViewById(R.id.tv_actionbar_title);
		tv_actionbar_title.setText("About Us");
		this.menuView = findViewById(R.id.menu_container);
		this.menuViewSecondary = findViewById(R.id.menu_secondary);
		this.blurimageView = (LinearLayout) findViewById(R.id.lay_blur_image);

	}

	@Override
	public void onMenuSelected(int paramInt) {
		// TODO Auto-generated method stub

	}
}
